]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid/iconGrid: Fill pages by default
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Wed, 25 Nov 2020 21:50:02 +0000 (18:50 -0300)
committerMarge Bot <marge-bot@gnome.org>
Tue, 1 Dec 2020 18:57:49 +0000 (18:57 +0000)
Use the Clutter.ActorAlign.FILL alignment by default, which
expands the grid until max-row|column-spacing is hit. This
was the behavior we originally wanted for the icon grid, and
it's finally being realized.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1510>

js/ui/iconGrid.js

index 51157a311c48d9015c4b315097c2a1162661ff93..e3c232105a2a8f5a2ca89ad4d0f686a1b79dbfe5 100644 (file)
@@ -1310,9 +1310,9 @@ var IconGrid = GObject.registerClass({
             orientation: Clutter.Orientation.VERTICAL,
             columns_per_page: 6,
             rows_per_page: 4,
-            page_halign: Clutter.ActorAlign.CENTER,
+            page_halign: Clutter.ActorAlign.FILL,
             page_padding: new Clutter.Margin(),
-            page_valign: Clutter.ActorAlign.CENTER,
+            page_valign: Clutter.ActorAlign.FILL,
             last_row_align: Clutter.ActorAlign.START,
             column_spacing: 0,
             row_spacing: 0,